# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-wubi
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20190120
_commit=dd052ee158a38cb791755318b1aef9b4a3ed0316
pkgrel=1
pkgdesc="Wubi input for rime (mingw-w64)"
arch=('any')
license=('LGPL')
# dependency for reverse lookup
depends=("${MINGW_PACKAGE_PREFIX}-rime-pinyin-simp")
url="https://github.com/rime/rime-wubi"
source=("https://github.com/rime/rime-wubi/archive/$_commit/rime-wubi-$_commit.tar.gz")
sha512sums=('7da0b3ba0fdce2b0f71a07d8f8b6b31986ebd6ebd86ab1fdaeadc0693a39fa7a00b950477e42c51164dcde02617debef3d7db0be97482d7d9402e614dafc1302')

package() {
  cd rime-wubi-$_commit
  install -Dm644 *.yaml -t ${pkgdir}${MINGW_PREFIX}/share/rime-data/
}
